package com.bub.pay.core.config;

import org.springframework.context.annotation.Configuration;

import tk.mybatis.spring.annotation.MapperScan;

/**
 * Spring Boot Mybatis注册类<br/>
 * 注意，由于MapperScannerConfigurer执行的比较早，所以必须有下面的注解
 *
 * @author Leo
 */
@Configuration
@MapperScan("com.bub.pay.core.dao")
public class MyBatisMapperScannerConfig {

//	/** sqlSessionFactory */
//	private static final String SESSION_FACTORY_NAME = "sqlSessionFactory";
//	/** com.billions..*.dao*/
//	private static final String BASE_PACKAGE_NAME = "com.billions..*.dao";
//
////	@Bean
////	public MapperScannerConfigurer mapperScannerConfigurer() {
////		MapperScannerConfigurer scannerConfigurer = new MapperScannerConfigurer();
////		scannerConfigurer.setSqlSessionFactoryBeanName(SESSION_FACTORY_NAME);
////		scannerConfigurer.setBasePackage(BASE_PACKAGE_NAME);
////		scannerConfigurer.setAnnotationClass(MyBatisDao.class);
////		return scannerConfigurer;
////	}
}